package com.chb.rpc;

import com.chb.interfaces.HelloService;

/**
 * @description: main
 * @author: CHB
 * @create: 2022-03-14 10:10
 **/
public class RpcClient {

    public static void main(String[] args) {
        RpcProxy rpcProxy = new RpcProxy();
        HelloService service = rpcProxy.proxyClient(HelloService.class, "localhost", 9898);
        String result = service.hello("chb");
        System.out.println("result = " + result);
    }
}
